package com.joonggo.gip.controls;

import java.util.HashMap;

import org.springframework.stereotype.Component;

@Component
public class ControllerTemplateImpl implements ControllerTemplate {

	@Override
	public HashMap<String, Object> getDataTemplate(
			
		ExecuteDetailFuncDetailStatement executeDetailFuncDetailStatement) {
		HashMap<String, Object> responseResult = new HashMap<String, Object>();
		try {
			executeDetailFuncDetailStatement.executeFunc(responseResult);
			responseResult.put("status", "success");
		}catch(Exception e) {
			e.printStackTrace();
			responseResult.put("status", "fail");
		}
		
		return responseResult;
	}
	
}
